package com.donfu.system.service.house.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.donfu.system.mapper.house.HouseCommentLikeMapper;
import com.donfu.system.domain.house.HouseCommentLike;
import com.donfu.system.service.house.IHouseCommentLikeService;

/**
 * 评论点赞Service业务层处理
 * 
 * @author donfu
 * @date 2021-12-01
 */
@Service
public class HouseCommentLikeServiceImpl implements IHouseCommentLikeService 
{
    @Autowired
    private HouseCommentLikeMapper houseCommentLikeMapper;

    /**
     * 查询评论点赞
     * 
     * @param id 评论点赞主键
     * @return 评论点赞
     */
    @Override
    public HouseCommentLike selectHouseCommentLikeById(Integer id)
    {
        return houseCommentLikeMapper.selectHouseCommentLikeById(id);
    }

    /**
     * 查询评论点赞列表
     * 
     * @param houseCommentLike 评论点赞
     * @return 评论点赞
     */
    @Override
    public List<HouseCommentLike> selectHouseCommentLikeList(HouseCommentLike houseCommentLike)
    {
        return houseCommentLikeMapper.selectHouseCommentLikeList(houseCommentLike);
    }

    /**
     * 新增评论点赞
     * 
     * @param houseCommentLike 评论点赞
     * @return 结果
     */
    @Override
    public int insertHouseCommentLike(HouseCommentLike houseCommentLike)
    {
        return houseCommentLikeMapper.insertHouseCommentLike(houseCommentLike);
    }

    /**
     * 修改评论点赞
     * 
     * @param houseCommentLike 评论点赞
     * @return 结果
     */
    @Override
    public int updateHouseCommentLike(HouseCommentLike houseCommentLike)
    {
        return houseCommentLikeMapper.updateHouseCommentLike(houseCommentLike);
    }

    /**
     * 批量删除评论点赞
     * 
     * @param ids 需要删除的评论点赞主键
     * @return 结果
     */
    @Override
    public int deleteHouseCommentLikeByIds(Integer[] ids)
    {
        return houseCommentLikeMapper.deleteHouseCommentLikeByIds(ids);
    }

    /**
     * 删除评论点赞信息
     * 
     * @param id 评论点赞主键
     * @return 结果
     */
    @Override
    public int deleteHouseCommentLikeById(Integer id)
    {
        return houseCommentLikeMapper.deleteHouseCommentLikeById(id);
    }
}
